#include"Socket.hpp"
#include"pro.hpp"

int main()
{
    Request req(100,200,'+');
    std::string s;
    req.Serialize(&s);
    s=Encode(s);
    std::cout<<s;
    
    std::string content;
    bool r=Decode(s,&content);
    std::cout<<content;
    Response res;
    res.Deserialize(content);
    std::cout<<res.code<<std::endl;
    std::cout<<res.result<<std::endl;
}